package com.mars.module.admin.request;

import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mars.module.admin.entity.SysFood;
import com.mars.module.admin.entity.SysShopCar;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.mars.common.request.PageRequest;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * 订单请求对象 sys_order
 *
 * @author mars
 * @date 2024-04-15
 */
@Data
@ApiModel(value = "订单对象")
@EqualsAndHashCode(callSuper = true)
public class SysOrderRequest extends PageRequest{



    /**
     * ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "地址")
    private Long addressId;

    /**
     * 订单号
     */
    @ApiModelProperty(value = "订单号")
    private String serialNo;

    /**
     * 总价格
     */
    @ApiModelProperty(value = "总价格")
    private BigDecimal totalPrice;

    /**
     * 总数量
     */
    @ApiModelProperty(value = "总数量")
    private Integer productSum;

    /**
     * 用户
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "用户")
    private Long userId;

    /**
     * 状态
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "状态")
    private Long status;

    /**
     * 总热量
     */
    @ApiModelProperty(value = "总热量")
    private String heatSum;

    /**
     * 创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 创建人名称
     */
    @ApiModelProperty(value = "创建人名称")
    private String createByName;

    @ApiModelProperty(value = "是否是购物车页面：1-是 0-否")
    private String isShopCar;


    @ApiModelProperty(value = "商品列表")
    private List<SysShopCar> productList;
}
